package com.suray.wcs.service.pojo;

import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Objects;

/**
 * @Description 控件实体
 * @auther hujun
 * @create 2020-04-15 10:46
 */
@TableName("pricontrolmodel")
public class PriControlModel {
    private String menuId; //窗体ID
    private String controlId; //控件ID
    private String lid; //语言ID
    private String remark; //备注
    private String insertYmd; //录入时间
    private String insertId; //录入人Id
    private String updateYmd; //更新时间
    private String updateId; //更新人Id
    private String remark1; //备用字段
    private String remark2; //备用字段
    private String remark3; //备用字段
    private String remark4; //备用字段
    private String remark5; //备用字段
    private String seq; //顺序
    private char controlType; //类型
    //private char active; //是否激活

  /*  public char getActive() {
        return active;
    }

    public void setActive(char active) {
        this.active = active;
    }*/

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getControlId() {
        return controlId;
    }

    public void setControlId(String controlId) {
        this.controlId = controlId;
    }

    public String getLid() {
        return lid;
    }

    public void setLid(String lid) {
        this.lid = lid;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getInsertYmd() {
        return insertYmd;
    }

    public void setInsertYmd(String insertYmd) {
        this.insertYmd = insertYmd;
    }

    public String getInsertId() {
        return insertId;
    }

    public void setInsertId(String insertId) {
        this.insertId = insertId;
    }

    public String getUpdateYmd() {
        return updateYmd;
    }

    public void setUpdateYmd(String updateYmd) {
        this.updateYmd = updateYmd;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public String getRemark1() {
        return remark1;
    }

    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    public String getRemark2() {
        return remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }

    public String getRemark3() {
        return remark3;
    }

    public void setRemark3(String remark3) {
        this.remark3 = remark3;
    }

    public String getRemark4() {
        return remark4;
    }

    public void setRemark4(String remark4) {
        this.remark4 = remark4;
    }

    public String getRemark5() {
        return remark5;
    }

    public void setRemark5(String remark5) {
        this.remark5 = remark5;
    }

    public String getSeq() {
        return seq;
    }

    public void setSeq(String seq) {
        this.seq = seq;
    }

    public char getControlType() {
        return controlType;
    }

    public void setControlType(char controlType) {
        this.controlType = controlType;
    }

    @Override
    public String toString() {
        return "PriControlModel{" +
                "menuID='" + menuId + '\'' +
                ", controlID='" + controlId + '\'' +
                ", LID='" + lid + '\'' +
                ", remark='" + remark + '\'' +
                ", insertYmd='" + insertYmd + '\'' +
                ", insertId='" + insertId + '\'' +
                ", updateYmd='" + updateYmd + '\'' +
                ", updateId='" + updateId + '\'' +
                ", remark1='" + remark1 + '\'' +
                ", remark2='" + remark2 + '\'' +
                ", remark3='" + remark3 + '\'' +
                ", remark4='" + remark4 + '\'' +
                ", remark5='" + remark5 + '\'' +
                ", seq='" + seq + '\'' +
                ", controltype=" + controlType +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PriControlModel that = (PriControlModel) o;
        return controlType == that.controlType &&
                Objects.equals(menuId, that.menuId) &&
                Objects.equals(controlId, that.controlId) &&
                Objects.equals(lid, that.lid) &&
                Objects.equals(remark, that.remark) &&
                Objects.equals(insertYmd, that.insertYmd) &&
                Objects.equals(insertId, that.insertId) &&
                Objects.equals(updateYmd, that.updateYmd) &&
                Objects.equals(updateId, that.updateId) &&
                Objects.equals(remark1, that.remark1) &&
                Objects.equals(remark2, that.remark2) &&
                Objects.equals(remark3, that.remark3) &&
                Objects.equals(remark4, that.remark4) &&
                Objects.equals(remark5, that.remark5) &&
                Objects.equals(seq, that.seq);
    }

    @Override
    public int hashCode() {

        return Objects.hash(menuId, controlId, lid, remark, insertYmd, insertId, updateYmd, updateId, remark1, remark2, remark3, remark4, remark5, seq, controlType);
    }
}
